package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 楼栋和单元关联对象 sys_building_unit
 * 
 * @author ruoyi
 * @date 2020-06-24
 */
public class SysBuildingUnit extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 楼栋ID */
    private Long buildingId;

    /** 单元ID */
    private Long unitId;

    public void setBuildingId(Long buildingId) 
    {
        this.buildingId = buildingId;
    }

    public Long getBuildingId() 
    {
        return buildingId;
    }
    public void setUnitId(Long unitId) 
    {
        this.unitId = unitId;
    }

    public Long getUnitId() 
    {
        return unitId;
    }

    public SysBuildingUnit(Long buildingId, Long unitId) {
        this.buildingId = buildingId;
        this.unitId = unitId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("buildingId", getBuildingId())
            .append("unitId", getUnitId())
            .toString();
    }
}
